<?php $this->_extends('../_layouts/blank_layout'); ?>
<?php $this->_block('contents'); ?>
<style type="text/css">
.PageNext{page-break-after: always;}
.print_table{float: left; margin-right:5px;}
</style>
<?foreach (array_chunk($products, 35) as $k => $product):?>
<table class="print_table">
<tr>
	<th width="60">产品编号</th>
	<th>产品名称</th>
	<th width="120">产品架位</th>
	<th width="30">数量</th>
</tr>
<?foreach ($product as $key => $p):?>
<tr>
	<td align="center"><?=$p['number']?></td>
	<td align="center"><?=$p['name']?></td>
	<td align="center"><?=$p['shelf_position']?></td>
	<td align="center"><?=$p['quantity']?></td>
</tr>
<?endforeach;?>
</table>
<?if (($k+1)%2 == 0):?>
<div class="PageNext"></div>
<?endif;?>
<?endforeach;?>
<?php $this->_endblock();?>